const express = require("express");
// 创建路由对象
const router = express.Router();
const handler = require("../router_handler/menu");

// 获取菜单列表
router.get("/listMenu", handler.getMenuList);

// 添加菜单
router.post("/addMenu", handler.addMenu);

// 获取菜单项
router.get("/listMenuOptions", handler.getMenuOptions);
// 将路由对象共享出去
module.exports = router;
